package com.ztf.shopping.bean;

import java.math.BigDecimal;

/**
 * 商品类
 */
public class Article {
    private int id;
    private String name;
    private BigDecimal price;
    private String pic;
    private int number;

    public Article(int id, String name, BigDecimal price, String pic, int number) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.pic = pic;
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", pic='" + pic + '\'' +
                ", number=" + number +
                '}';
    }
}
